//
//  XMReturnDetailInfoViewController.m
//  XMJJ_zml
//
//  Created by 丁浩 on 2025/6/24.
//

#import "XMReturnDetailInfoViewController.h"
#import "XMReturnDetailInfoView.h"
#import "XMNetwork+mine.h"

@interface XMReturnDetailInfoViewController ()

@property (nonatomic, strong) XMReturnDetailInfoView *detailInfoView;

@end

@implementation XMReturnDetailInfoViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self creatUI];
}

- (void)creatUI {
    [self.view addSubview:self.detailInfoView];
    [self getRefundDetailInfo];
}

- (void)getRefundDetailInfo {
//    [self.detailInfoView setContentWithReturnModel:nil];
    [_Network getRefundDetailInfoWithRefundId:_refundId
                                      success:^(id  _Nonnull responseObject) {

    } failure:^(NSError * _Nonnull error) {

    }];
}

- (XMReturnDetailInfoView *)detailInfoView {
    if (!_detailInfoView) {
        _detailInfoView = [[XMReturnDetailInfoView alloc] initWithFrame:self.view.bounds];
    }
    return _detailInfoView;
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
